package service;

import java.sql.SQLException;
import java.util.List;

import entity.Auth;

public interface AuthService {
	List<Auth> getAuthList() throws SQLException;
	void updateStatus(int id, int status) throws SQLException;
	Boolean judgeHasChildByParentId(int id) throws SQLException;
	int deleteAuthById(int id) throws SQLException;
	int updateMenu(int id, int is_menu) throws SQLException;
	int addAuth(Auth auth) throws SQLException;
	Auth getAuthById(int id) throws SQLException;
	int editAuth(Auth auth) throws SQLException;
	List<Auth> getMenuList() throws SQLException;
}
